package com.kaishengit.service;


import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.kaishengit.pojo.Project;
import com.kaishengit.pojo.Trend;


@Service
@Transactional
public class TrendService extends BaseService {

	public void save(Trend trend) {
		
		getTrendDao().saveOrUpdate(trend);
	}



	public List<Trend> getTrends(Project project) {
		return getTrendDao().findByProject(project);

	}

	/*public List<News> getAjaxTrends(int id,Project project) {
		List<News> news = new ArrayList<News>();
		for (Trend trend : getTrendDao().findItIdProject(id,project)) {
			news.add(PTE.TrendToNews(trend));
		}
		return news;
	}

	public long count(int id,Project project) {
		return getTrendDao().count(id,project);
	}*/

}
